# $Id: PKGBUILD 149832 2012-02-11 10:00:49Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-mkfontdir
pkgver=1.0.7
pkgrel=1
pkgdesc="Create an index of X font files in a directory"
arch=(any)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('sh' 'xorg-mkfontscale')
makedepends=('xorg-util-macros')
groups=('xorg' 'xorg-apps')
source=(http://xorg.freedesktop.org/archive/individual/app/mkfontdir-${pkgver}.tar.bz2)
sha1sums=('3c06dad8a5fbf7362b51fb7d6b1ab805eba40336')

build() {
  cd "${srcdir}/mkfontdir-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/mkfontdir-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
